﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Src="~/_controltemplates/ImportExamResult/MapFieldControl.ascx" TagName="MapFields"
    TagPrefix="uc" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportDiemThiPage.aspx.cs"
    Inherits="ImportExamResult.Layouts.ImportExamResult.ImportDiemThiPage" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="../1033/Site.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../js/knockout-2.2.1.js" type="text/javascript"></script>
    <script src="../js/import-result.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div class="import-dtdh">
        <h2>
            Công cụ đổ điểm các trường ĐH - CĐ
        </h2>
        <fieldset>
            <legend>Chọn file đổ điểm</legend>
            <div>
                <asp:FileUpload ID="fileUpload" runat="server" />
                <asp:Button ID="btnSend" runat="server" Text="Upload" />
                <asp:Button ID="btnStandard" runat="server" Text="Chuẩn hóa" Enabled="false" />
                <asp:Button ID="btnExecute" runat="server" Text="Ghi xuống DB" Enabled="false" />
                <asp:Button ID="btnExport" runat="server" Text="Xuất Excel" Enabled="false" />
                <asp:Button ID="btnMapField" runat="server" Text="Map Fields" OnClientClick="loadColumnNames(); return false;" />
            </div>
            <%--<asp:Panel ID="pnlSheet" runat="server" Visible="false">
                <div>
                    <asp:CheckBox ID="chkMergeSheet" runat="server" Text="Merge Sheet" />
                </div>
            </asp:Panel>--%>
            <fieldset id="grpCustomize" runat="server" visible="false">
                <legend>Tùy chỉnh</legend>
                <div>
                    <asp:CheckBox ID="chkAddUniversityId" runat="server" Text="Thêm vào cột mã trường/ hoặc lấy theo mã trường này:" />
                    <asp:TextBox ID="txtUniversityId" runat="server" />
                </div>
                <%--<div>
                    <span>Kiểu ngày</span>
                    <asp:RadioButtonList ID="rdoFormatDate" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Text="dd/MM/yy" Value="dd/MM/yy" Selected="True" />
                        <asp:ListItem Text="MM/dd/yy" Value="MM/dd/yy" />
                    </asp:RadioButtonList>
                </div>--%>
            </fieldset>
        </fieldset>
        <fieldset id="grpUniversity" runat="server" visible="false">
            <legend>Trường Đại Học - Cao Đẳng</legend>
            <div class="university">
                <span>
                    <asp:Literal ID="litUniversityId" runat="server" /></span>
                <asp:TextBox ID="txtUniversityName" runat="server" />
            </div>
            <div class="file-sender">
                <span>Người gửi điểm:</span>
                <asp:DropDownList ID="ddlFileSender" runat="server" AppendDataBoundItems="true">
                    <asp:ListItem Value="" Text="-- Chọn người gửi --" />
                </asp:DropDownList>
                <span>Ghi chú:</span>
                <asp:TextBox ID="txtNote" runat="server" />
            </div>
        </fieldset>
        <div class="error-msg">
            <asp:Literal ID="litErrorMessage" runat="server" />
        </div>
        <div class="grid">
            <asp:GridView ID="Grid" runat="server" PageSize="50" AllowPaging="True" CellPadding="4"
                ForeColor="#333333" CssClass="grid">
                <FooterStyle BackColor="#feffff" Font-Bold="True" />
            </asp:GridView>
        </div>
    </div>
    <uc:MapFields ID="mapField" runat="server" />
    <asp:Panel ID="pnlConfirmExecute" runat="server" Visible="false">
        <asp:Literal ID="litMask" runat="server" />
        <div class="popupConfirm">
            <div class="msg-box">
                <div class="msg">
                    <asp:Literal ID="litConfirmMessage" runat="server" />
                </div>
                <div class="msg-button">
                    <asp:Button ID="btnOk" runat="server" Text="Tiếp tục" />
                    <asp:Button ID="btnCancel" runat="server" Text="Hủy" />
                </div>
            </div>
        </div>
    </asp:Panel>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Application Page
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    My Application Page
</asp:Content>
